package com.vidaappv1;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class RegularOrder extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_regular_order);
		Button orderconfirmbutton = (Button)findViewById(R.id.button1);
		Button nothanksbutton = (Button)findViewById(R.id.btnSitDown);
		
		orderconfirmbutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				//TODO get usual order info from server 
				String usualorder="5";
				Intent confirmintent = new Intent(getApplicationContext(),Order.class);
				confirmintent.putExtra("Orders", usualorder);
				startActivity(confirmintent);
			}
		});
		
		nothanksbutton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				Intent confirmintent = new Intent(getApplicationContext(),Home.class);
				startActivity(confirmintent);
			}
		});
	}	

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.regular_order, menu);
		return true;
	}

}
